package com.team.cloudsharing.controller.file;

import org.springframework.http.ResponseEntity;

import com.team.cloudsharing.dto.File;
import com.team.cloudsharing.dto.Message;
import com.team.cloudsharing.dto.PathDTO;
import com.team.cloudsharing.dto.TextFile;

public interface FileController {
	
	public ResponseEntity<Message> saveFileUploaded(File file);
	
	public ResponseEntity<Message> createTextFile(TextFile textFile);
	
	//Download file
	public ResponseEntity<File> downloadFile(String fileUrl);
	
	//Manage file
	public ResponseEntity<Message> moveFileToTrash(File file);
	
	public ResponseEntity<Message> restoreFileFromTrash(File file);

	public ResponseEntity<Message> deleteFile(File file);

	public ResponseEntity<Message> renameFile(PathDTO filePath);

	//public ResponseEntity<Message> moveFile(PathDTO filePath);

//	public ResponseEntity<Message> saveFile(File file);
	
	public ResponseEntity<String> getFileUrlByFileId(String fileId);

	public ResponseEntity<Message> moveFileToAnotherFolder(PathDTO filePath); 
	
	public ResponseEntity<Message> copyFileToAnotherFolder(PathDTO filePath); 
}
